package org.elasticsearch.action;

import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.settings.SettingsFilter;
import org.elasticsearch.rest.RestController;
import org.elasticsearch.rest.RestHandler;
import org.elasticsearch.rest.action.document.RestGetAction;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.function.Consumer;
import java.util.function.UnaryOperator;
import java.util.stream.Collectors;

/**
 * Created by Administrator on 2017/7/9 0009.
 */
public class ActionModule {


    private final RestController restController;
    public ActionModule() {
        restController = new RestController();
    }


    public void initRestHandlers() {
        Consumer<RestHandler> registerHandler = a -> {
        };
        registerHandler.accept(new RestGetAction(null,restController));
    }

    public RestController getRestController() {
        return restController;
    }


}
